Customizing the Targeted Content Widget

To create a custom version of the Targeted Content widget (for example, to add rule templates), follow these steps.

  1. Open the site root/widgets/Edit TargetedContent.ascx.cs file.
  2. Create a class, for example, MyRuleTemplate, that inherits Ektron.RuleEditor.RuleTemplate in #region Rule Templates.
  3. Modify private void AddAllRuleTemplates.
  4. Add an instance of your class to the rest of the rule templates. For example, AddRuleTemplate(new MyRuleTemplate());
Previous TopicNext Topic|